home *** CD-ROM | disk | FTP | other *** search
/ ADA Programming Guide / ADA Programming Guide.iso / ada_gnu / adainc / s-atacco.ads < prev    next >
Text File  |  1996-01-30  |  2KB  |  33 lines

  1. ------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                         GNAT COMPILER COMPONENTS                         --
  4. --                                                                          --
  5. -- S Y S T E M . A D D R E S S _ T O _ A C C E S S _ C O N V E R S I O N S  --
  6. --                                                                          --
  7. --                                 S p e c                                  --
  8. --                                                                          --
  9. --                            $Revision: 1.2 $                              --
  10. --                                                                          --
  11. -- This specification is adapted from the Ada Reference Manual for use with --
  12. -- GNAT.  In accordance with the copyright of that document, you can freely --
  13. -- copy and modify this specification,  provided that if you redistribute a --
  14. -- modified version,  any changes that you have made are clearly indicated. --
  15. --                                                                          --
  16. ------------------------------------------------------------------------------
  17.  
  18. generic
  19.    type Object (<>) is limited private;
  20.  
  21. package System.Address_To_Access_Conversions is
  22. pragma Preelaborate (Address_To_Access_Conversions);
  23.  
  24.    type Object_Pointer is access all Object;
  25.  
  26.    function To_Pointer (Value : Address)        return Object_Pointer;
  27.    function To_Address (Value : Object_Pointer) return Address;
  28.  
  29.    pragma Convention (Intrinsic, To_Pointer);
  30.    pragma Convention (Intrinsic, To_Address);
  31.  
  32. end System.Address_To_Access_Conversions;
  33.